/**
 * 
 */
package comp512.classes;

import javax.swing.JOptionPane;

import comp512.gui.ClientPrompt;
import comp512.gui.ServerGUI_Main;

/**
 * @author Siddharth Dahiya and Ronny Arias
 * 
 */
public final class FamilyFeud {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Object[] options = { "Client", "Server" };
		int selectedOption = JOptionPane.showOptionDialog(null,
				"Is this the client or server?", "Select Mode",
				JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null,
				options, options[1]);
		if (selectedOption == 1) {
			//DEBUG
			//System.out.println("Server");
			ServerGUI_Main server = new ServerGUI_Main();
			server.init();
			server.setVisible(true);
		} else{
			
			//ClientGUI_Lobby client = new ClientGUI_Lobby();
			//client.setVisible(true);
			ClientPrompt prompt = new ClientPrompt();
			prompt.setModal(true);
			prompt.setVisible(true);
			System.out.println("Client Closed");
		}
		//System.out.println("Adios!");
	}

}
